﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AGPR.Locadora.Model;
using AGPR.Locadora.Data;

namespace AGPR.Locadora.Desktop
{
    public partial class FConsultarClientes : Form
    {
        private ActiveRecord db = ActiveRecord.Instancia;

        public FConsultarClientes()
        {
            InitializeComponent();

            this.db.setResultType("table");
            this.dataGrid.DataSource = this.db.select("cliente");
            this.dataGrid.Columns["id_cliente"].Visible = false;
            this.dataGrid.Columns["id_endereco"].Visible = false;
            this.dataGrid.Columns["ativo"].Visible = false;
            this.dataGrid.Columns["data_cadastro"].Visible = false;
            this.dataGrid.Columns["telefone_movel"].Visible = false;
            this.dataGrid.Columns["anotacoes"].Visible = false;
        }

        private void ConsultarClientes_Load(object sender, EventArgs e)
        {

        }
    }
}
